package pl.ivmx.cinema.entities;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;

@Entity
@NamedQuery(
        name="show.findShowsWithId",
        query="SELECT s FROM Show s WHERE s.id = :id"
)
public class Show implements Serializable {
	@Id
	private long id;

	@Column(name="SCREEN_ID")
	private BigDecimal screenId;

	@Column(name="SHOW_DATE")
	private Date showDate;

	@Column(name="MOVIE_ID")
	private BigDecimal movieId;

	private static final long serialVersionUID = 1L;

	public Show() {
		super();
	}

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public BigDecimal getScreenId() {
		return this.screenId;
	}

	public void setScreenId(BigDecimal screenId) {
		this.screenId = screenId;
	}

	public Date getShowDate() {
		return this.showDate;
	}

	public void setShowDate(Date showDate) {
		this.showDate = showDate;
	}

	public BigDecimal getMovieId() {
		return this.movieId;
	}

	public void setMovieId(BigDecimal movieId) {
		this.movieId = movieId;
	}

}
